/**
 * 
 */
package com.ekingstar.framework.service;

import java.util.List;

import com.ekingstar.framework.domain.Function;
import com.ekingstar.framework.domain.FunctionField;
import com.ekingstar.framework.util.Page;

/**
 * 
 *
 */
public interface IFunctionService {

	public List getFunctionsWidthRoles();
	public List<Function> getFunctionsByUserId(String id);
	//
	public boolean addFunction(Function func);
	public boolean updateFunction(Function func);
	public Function viewFunction(String fId);
	public boolean deleteFunction(String fId);
	//
	public Page queryFunctions(Function contion,int pageNo,int pageSize);
	//
	public List getFunctionStructure(boolean isIncludeLeaf);
	public List<Function> getChildren(String fid);
	public List<FunctionField> getFunctionField(String fid);
	//
	public List<Function> getChildren(Function parent);
	//获取数据角色数据权限
	public List getFunctionParameter(String fid,String rid);
}
